package be.khleuven.screencasting.facade;

import java.util.List;
import javax.ejb.Remote;

/**
 *
 * @author smokeit
 */
@Remote
public interface EntityFacadeRemote
{
    public Object create(Object entity);

    public Object edit(Object entity);

    public void remove(Object entity);

    public Object find(Object id, Class clazz);

    public List select(String query);

    public List select(String query, Object ... params);

    public List findAll(Class clazz);

    public List findRange(Class clazz, int ... range);

    public int count(Class clazz);
    
}
